const request = require('@/utils/request.js')

export const getLocationByUser = (query) => {
  return request.get('/api/map/getLocationByUser', query)
}

export const getLocations = () => {
  return request.get('/api/map/getLocations')
}

export const sendLocation = (params) => {
  return request.post('/api/map/sendLocation', params)
}
